package com.huowenjie.web;

import com.huowenjie.api.TestApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Ri2Controoler {
    @Autowired
    TestApi testApi;

    @RequestMapping("/test01/{name}")
    public String test(@PathVariable String name){
        String test = testApi.test(name);
        return test;
    }
}
